var frmvalidator  = new Validator("cpassword");  
frmvalidator.addValidation("pusername","req","Please enter your username");
frmvalidator.addValidation("oldpwd","req","Please enter your old password");
frmvalidator.addValidation("newpwd","req","Please enter your new password");
frmvalidator.addValidation("cnewpwd","req","Please enter your new password again");
frmvalidator.addValidation("cnewpwd","eqelmnt=newpwd","The confirmed password is not the same as your password");

/*<![CDATA[*/// 
   jQuery(function($) {
            $.mask.definitions['~']='[+-]';
      $("#pssn").mask("999-999-999");
      $("#product").mask("a*-999-a999",{placeholder:" ",completed:function(){alert("You typed the following: "+this.val());}});
      $("#eyescript").mask("~9.99 ~9.99 999");
   });
// ]]&gt;/*]]>*/
